<?php
if(!defined('MY_ROOT'))
{
throw new Exception('Access Denied');
}
define('SMARTY_DIR',MY_ROOT."/source/class/template/");
require(SMARTY_DIR.'Smarty.class.php');
class template extends Smarty{
function __construct()
{
parent::__construct();
$this->setTemplateDir(MY_ROOT."/template/");
$this->setCompileDir(MY_ROOT."/data/smarty/template_c/");
$this->setCacheDir(MY_ROOT."/data/smarty/cache/");
$this->setCaching(Smarty::CACHING_LIFETIME_CURRENT);
$this->setConfigDir(MY_ROOT."/data/language/smarty/");
}

}
?>
